<?php
/**
 * User: @lose
 * Date: 2020/12/21
 * Time: 10:25 上午
 */

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/flowPackage',
    'namespace' => 'Frieza\\Modules\\FlowPackage\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/', 'FlowPackageController@index');
    $router->get('/create', 'FlowPackageController@create');
    $router->get('/{packageId}/edit', 'FlowPackageController@create');
    $router->post('/save', 'FlowPackageController@save');
    $router->post('/finish', 'FlowPackageController@finish');
    $router->post('/delete', 'FlowPackageController@delete');
    $router->post('/sort', 'FlowPackageController@sort');
});